INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include)

IF(COMPONENT_TSIN OR COMPONENT_SCDL_COMPILER)
ADD_SUBDIRECTORY(scdl/parser)

FILE(GLOB SCDL_HEADERS ${PROJECT_SOURCE_DIR}/scdl/import/*.scdl)
INSTALL(FILES ${SCDL_HEADERS} DESTINATION scdl/import)
ENDIF()

IF(COMPONENT_TSIN)
ADD_SUBDIRECTORY(tsin/config)
ADD_SUBDIRECTORY(tsin/display)
ADD_SUBDIRECTORY(tsin/input)
ADD_SUBDIRECTORY(tsin/library)
ADD_SUBDIRECTORY(tsin/runtime)
ADD_SUBDIRECTORY(tsin/selector)
ADD_SUBDIRECTORY(tsin/util)
ADD_SUBDIRECTORY(tsin)
ENDIF()

IF(COMPONENT_SCDL_COMPILER)
ADD_SUBDIRECTORY(scdl/compiler)
ENDIF()

IF(COMPONENT_TSIN_IDE)
ADD_SUBDIRECTORY(tsinide)
ENDIF()
